package com.yami.shop.mystery.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.common.bean.PageDTO;
import com.yami.shop.common.bean.PageVO;
import com.yami.shop.mystery.common.dto.ProdCompoundDto;
import com.yami.shop.mystery.common.model.CompoundRecord;
import com.yami.shop.mystery.common.model.Compound;
import com.yami.shop.mystery.common.vo.CompoundVo;

import java.util.List;

public interface CompoundServer extends IService<Compound> {
    PageVO<CompoundVo> getList(PageDTO pageDTO, ProdCompoundDto spuCompoundDTO);

    void saveSpuCompound(CompoundVo prodCompoundVo);

    void updateSpuCompound(CompoundVo prodCompoundVo);

    void deleteSpuCompound(int id);

    void updateStatus(int id, int status);

    PageVO<CompoundVo> getSpuList(PageDTO pageDTO, ProdCompoundDto spuCompoundDTO);

    PageVO<CompoundVo> getAppSpuList(PageDTO pageDTO, ProdCompoundDto spuCompoundDTO);

    CompoundVo getDetail(int compoundId);

    IPage<CompoundRecord> getWaitCompoundRecordList();
}
